package cn.tedu.submarine;

import javax.swing.*;
import java.util.Random;

//鱼雷潜艇类
public class TorpedoSubmarine extends SeaObject implements EnemyScore{

    public int getScore(){
        return 40;
    }
    /**构造方法*/
    public TorpedoSubmarine(){
        super(64,20);
    }
    public void step(){
        x+=speed;
    }
    public ImageIcon getImage(){
        if(isLive()){
            return Images.torpesubm;
        }else{
            return null;
        }
    }
}
